//设置navbar样式ʽ
@import "variable.less";

.navbar {
  //margin-top:70px;
  width: 100%;
  height: @navbar_height;
  //border-bottom: 2px solid #DDDDDD;
  > div {
    height: 100%;
  }
  .nav {
    //line-height: @navbar_height;
    li{
      margin-left: 20px;
      width: 128px;
      height: 46px;
      text-align: center;
      position: relative;
      &:before{
        width: 128px;
        height: 46px;
        content:"";
        position: absolute;
        top:0;
        left:0;
        background-image: url(../../assets/images/navbarBg.png);
        background-size: cover;
        background-position: 80px;
        background-repeat: no-repeat;
        transition: all .4s linear;
        opacity: 0;
        z-index: -1;
      }
      a {
        text-align: center;
        padding: 0 25px 10px 2px;
        border-bottom: 5px solid transparent;
        font-size: @nav_font_size;
        color: @font_base_color_dark;
        line-height: 46px;
        transition: all .3s linear;
      }
      &:hover::before{
        background-position: 0;
        opacity: 1;
      }
      &:hover a {
        color: #fff;
      }
      .active0 {
        border-bottom: 3px solid @font_base_color;
        //color:@nav_hover;
      }
    }
    .active0 :before{
      width: 128px;
      height: 46px;
      content:"";
      position: absolute;
      top:0;
      left:0;
      background-image: url(../../assets/images/navbarBg.png);
      background-size: cover;
      background-repeat: no-repeat;
      transition: all .4s linear;
      opacity: 1;
      z-index: -1;
    }
    .active0:hover::before{
      background-position: 80px;
      opacity: 0;
    }
    .active0 a{
      color:#fff;
    }
  }
  .nav-logo {
    img {
      vertical-align: middle;
      height: 62px;
    }
    span {
      padding-left: 15px;
      font-size: 20px;
      color: #414141;
      font-family: "Blackadder ITC";
    }
  }
}
